<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
$(document).ready(function() {
	var type = "";
	$("#hide").hide();
	$("#delImg").click(function() {
		type = "삭제";
		if (confirm(type + " 하시겠습니까?") == false){
			$("#inputPass").html("");
		}else {
			location.href ="${initParam.root}forum/forumdelete.do?no=${requestScope.fvo.no}";
		}

	});
	$("#updateImg").click(function() {
		type = "수정";
		if (confirm(type + " 하시겠습니까?") == false){
			$("#inputPass").html("");
			return;
		}else {
			location.href = "${initParam.root}forum/updateView.do?no=${requestScope.fvo.no}";
		}
	});//click
});//ready
</script>
<h3>무비 포럼 - 상세정보</h3>
<hr align="left" width="150">
<center>
<table class="content">
	<tr>
		<td><b>${requestScope.fvo.no }-${requestScope.fvo.title}</b></td>
	</tr>
	<tr>
		<td><font size="2">닉네임: ${requestScope.fvo.memberVO.nick} | 조회수:
				${requestScope.fvo.hit} | 작성날짜: ${requestScope.fvo.date}</font></td>
	</tr>
	<tr>
		<td align="left"><textarea cols="70" rows="10" name="content" readonly="readonly">${requestScope.fvo.content }</textarea></td>
	</tr>
	<tr>
		</tr>
		<tr>
			<td align="center"><a href="list.do"><img
					src="${initParam.root}/img/list_btn.jpg"></a> 
					<c:if test="${sessionScope.mvo.email == requestScope.fvo.memberEmail}">
					<img class="action" id="updateImg"		src="${initParam.root}/img/modify_btn.jpg">
					<img class="action" id="delImg" src="${initParam.root}/img/delete_btn.jpg">
				  </c:if>
				</td>
		</tr>
	</table>	
</center>